Component({
  externalClasses: ['wr-class'],

  properties: {
    goodsList: {
      type: Array,
      value: [],
    },
    CurrentTabIndex: {
      type: Number,
      value: 0
    }
  },

  data: {
  },

  lifetimes: {
    ready() {
      this.init();
    },
  },

  methods: {
    init() {
    },
    handleCardClick: function (event) {
      const Id = event.currentTarget.dataset.id;
      console.log("Clicked card ID:", Id);
      wx.navigateTo({
        url: `/pages/goods/p-details/index?Id=${Id}&Index=${this.CurrentTabIndex}`,
      });
    },
  },
});
